.class Lcom/estrongs/io/archive/sevenzip/b$b$b;
.super Ljava/lang/Object;
.source "P7zipPluginDownloader.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/io/archive/sevenzip/b$b;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:[Ljava/lang/String;

.field final synthetic b:Lcom/estrongs/io/archive/sevenzip/b$b;


# direct methods
.method constructor <init>(Lcom/estrongs/io/archive/sevenzip/b$b;[Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/io/archive/sevenzip/b$b$b;->b:Lcom/estrongs/io/archive/sevenzip/b$b;

    iput-object p2, p0, Lcom/estrongs/io/archive/sevenzip/b$b$b;->a:[Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3

    .line 1
    iget-object p2, p0, Lcom/estrongs/io/archive/sevenzip/b$b$b;->b:Lcom/estrongs/io/archive/sevenzip/b$b;

    iget-object v0, p2, Lcom/estrongs/io/archive/sevenzip/b$b;->a:[Z

    const/4 v1, 0x0

    aget-boolean v0, v0, v1

    if-eqz v0, :cond_0

    .line 2
    iget-object p2, p2, Lcom/estrongs/io/archive/sevenzip/b$b;->d:Ljava/io/File;

    invoke-virtual {p2}, Ljava/io/File;->delete()Z

    .line 3
    iget-object p2, p0, Lcom/estrongs/io/archive/sevenzip/b$b$b;->b:Lcom/estrongs/io/archive/sevenzip/b$b;

    iget-object p2, p2, Lcom/estrongs/io/archive/sevenzip/b$b;->e:Ljava/io/File;

    invoke-virtual {p2}, Ljava/io/File;->delete()Z

    .line 4
    :cond_0
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 5
    new-instance p1, Les/d70;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object p2

    iget-object v0, p0, Lcom/estrongs/io/archive/sevenzip/b$b$b;->b:Lcom/estrongs/io/archive/sevenzip/b$b;

    iget-object v0, v0, Lcom/estrongs/io/archive/sevenzip/b$b;->f:Ljava/lang/String;

    sget-object v2, Lcom/estrongs/android/pop/b;->i:Ljava/lang/String;

    invoke-direct {p1, p2, v0, v2, v1}, Les/d70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;Z)V

    .line 6
    iput-boolean v1, p1, Les/d70;->O:Z

    .line 7
    new-instance p2, Ljava/io/File;

    sget-object v0, Lcom/estrongs/android/pop/b;->i:Ljava/lang/String;

    invoke-direct {p2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/io/File;->exists()Z

    move-result p2

    if-nez p2, :cond_1

    .line 8
    new-instance p2, Ljava/io/File;

    sget-object v0, Lcom/estrongs/android/pop/b;->i:Ljava/lang/String;

    invoke-direct {p2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/io/File;->mkdirs()Z

    .line 9
    :cond_1
    iget-object p2, p0, Lcom/estrongs/io/archive/sevenzip/b$b$b;->a:[Ljava/lang/String;

    aget-object p2, p2, v1

    invoke-virtual {p1, p2}, Les/s80;->a(Ljava/lang/String;)V

    .line 10
    iget-object p2, p0, Lcom/estrongs/io/archive/sevenzip/b$b$b;->b:Lcom/estrongs/io/archive/sevenzip/b$b;

    iget-object p2, p2, Lcom/estrongs/io/archive/sevenzip/b$b;->b:Landroid/app/Activity;

    new-instance v0, Lcom/estrongs/io/archive/sevenzip/b$b$b$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/io/archive/sevenzip/b$b$b$a;-><init>(Lcom/estrongs/io/archive/sevenzip/b$b$b;Les/d70;)V

    invoke-virtual {p2, v0}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 11
    new-instance p2, Lcom/estrongs/io/archive/sevenzip/b$b$b$b;

    invoke-direct {p2, p0}, Lcom/estrongs/io/archive/sevenzip/b$b$b$b;-><init>(Lcom/estrongs/io/archive/sevenzip/b$b$b;)V

    invoke-virtual {p1, p2}, Les/s80;->a(Les/z80;)V

    .line 12
    invoke-virtual {p1}, Les/s80;->d()V

    return-void
.end method
